﻿CREATE TRIGGER Villages_Tracking_Delete
ON [dbo].[Villages] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Villages_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Villages_Tracking s JOIN DELETED i
    ON s.VillageID = i.VillageID
END





